package com.xiaohao.communication.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/*
* 回答
* */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Answer {

//    话题id
    private int topic_id;
//    回答id
    private int answer_id;
//    发布者用户名
    private String username;
//    内容
    private String answerContent;
//    发布时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
//    权重
    private int weight;


}
